package timeslice
{
	import flash.text.Font;
	
	import globals.$loadManager;
	import globals.$log;
	
	import loaders.LoadItem;
	
	import slices.TimeSlice; 
		
	public class LoadEmbedFont extends TimeSlice
	{		
		public function LoadEmbedFont()
		{
			super();
		}
		
		override public function onStart():void {
			$loadManager.add("flash/FontComp.swf", onLoad);
		}
		
		public function onLoad(item:LoadItem):void {
			var fonts:Array = Font.enumerateFonts(false);
			for each (var font:Font in fonts) {
				$log.debug("load font" + font.fontName);
			}
			isEnd = true;
		}
		
		
	}
}